# 在搜狗（https://www.sogou.com/）搜索天气预报
from selenium import webdriver
import time

from selenium.webdriver.common.by import By

driver = webdriver.Chrome(r"C:\Program Files\Google\Chrome\Application\chromedriver.exe")
driver.get("https://www.sogou.com/")

kw = driver.find_element(By.ID, 'query')
kw.send_keys('天气预报')

su = driver.find_element(By.ID, 'stb')
su.click()

time.sleep(5)
driver.quit()